home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
posix
/
unistd
/
sleep.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-03-20
|
250 b
|
21 lines
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
int
main(void)
{
time_t t;
time(&t);
printf("start: %s", ctime(&t));
sleep(10);
time(&t);
printf("end : %s", ctime(&t));
return 0;
}